#include<iostream>
#include<string>
using namespace std;
class Solution {
public:
    int maxRepeating(string sequence, string word)
    {
        int ans=0;
        string tmp;
        while (tmp.size() <= sequence.size())
        {
            if (sequence.find(tmp))
            {
                break;
            }
            tmp += word;
            ans++;
        }
        return ans;
    }
};